import request from '@/utils/request'

export default{
    addVideo(eduVideo){
        return request({
            url: `/eduservice/video/addVideo`,
            method: 'post',
            data: eduVideo
          })  
    },

    getVideo(id){
        return request({
            url: `/eduservice/video/getVideo/${id}`,
            method: 'get'
          })  
    },
    updateVideo(eduVideo){
        return request({
            url: `/eduservice/video/updateVideo`,
            method: 'post',
            data: eduVideo
          })  
    },
    deleteVideo(id){
        return request({
            url: `/eduservice/video/deleteVideo/${id}`,
            method: 'delete'
          })  
    },
    deleteAlyVod(id){
        return request({
            url: `/eduvod/video/deleteVod/${id}`,
            method: 'delete'
          })  
    }
}

